package cn.edu.gdu.quizpractice.service.impl;

import cn.edu.gdu.quizpractice.dao.ExamTimeDao;
import cn.edu.gdu.quizpractice.entity.ExamTime;
import cn.edu.gdu.quizpractice.service.IExamTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Aubery
 * @Date: 2025-04-17-13:47
 * @Description:
 */
@Service
public class ExamTimeServiceImpl implements IExamTimeService {

    @Autowired
    private ExamTimeDao examTimeDao;

    @Override
    public int insertExamTime(ExamTime examTime) {
        return examTimeDao.insertExamTime(examTime);
    }

    @Override
    public ExamTime findExamTimeByYear(Integer examYear) {
        return examTimeDao.findExamTimeByYear(examYear);
    }

    @Override
    public List<ExamTime> findAllExamTime() {
        return examTimeDao.findAllExamTime();
    }
}
